package com.zzt.zt_hilt.entity

import com.zzt.zt_hilt.inter.Work
import javax.inject.Inject

/**
 * @author: zeting
 * @date: 2022/8/29
 *
 */
class Programmer @Inject constructor() {

    var name: String = "张三"
    var age: Int = 20

    //需要提供Work实例
    @Inject
    lateinit var work: Work

    override fun toString(): String {
        return "姓名:$name  年龄:$age 工作:${work.getWork()}"
    }
}